<?php
/*
 * Author: Quan Van Sinh
 * Email: sinhvnb@vietnambiz.com
 */
checkLoginHeader();
checkPermission();

if(intval($_GET['id'])!=0) {
    $rs = getArticle(intval($_GET['id']));
}else {
    header("Location: ". $config['domain']);
}

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title><?php echo $rs['title'];?></title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    </head>
    <body>
        <div>
            <div style="font-size: large; padding-bottom: 10px"><b><?php echo stripcslashes($rs['title']);?></b></div>
            <div style="font-weight:bold; margin-bottom: 20px"><?php echo $rs['short_description'];?></div>
            <div><?php echo $rs['description'];?></div>
        </div>
    </body>
</html>